import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
// 通知需要引入样式
import 'element-plus/es/components/message/style/css'
import "element-plus/theme-chalk/el-loading.css"
import "element-plus/theme-chalk/el-message.css"
import "element-plus/theme-chalk/el-notification.css"
import "element-plus/theme-chalk/el-message-box.css"
import { createPinia } from "pinia"
import piniaPluginPersistState from 'pinia-plugin-persistedstate'
import router from './router'
import globalComponents from "@/components/globalComponents";
import 'default-passive-events'


const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistState)
app.use(pinia)
app.use(router)
app.use(globalComponents)
app.mount('#app')
